package cn.iocoder.yudao.module.ad.effect.api;

import cn.iocoder.yudao.module.ad.effect.service.AppAdEffectRecordService;
import cn.iocoder.yudao.module.api.ad.effect.AdEffectRecordApi;
import cn.iocoder.yudao.module.api.ad.effect.enums.AdEffectSceneEnum;
import cn.iocoder.yudao.module.api.ad.effect.enums.AdEffectTypeEnum;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import java.util.Set;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/03/04
 */
@Service
@Validated
public class AdEffectRecordApiImpl implements AdEffectRecordApi {

    @Resource
    private AppAdEffectRecordService appAdEffectRecordService;

    @Override
    public Set<Long> getTodayCompletePlanIds(Long userId) {
        return appAdEffectRecordService.getTodayCompletePlanIds(userId);
    }

    @Override
    public Long createIfNecessary(Long userId, AdEffectSceneEnum scene, AdEffectTypeEnum type, Long planId, Integer duration, Integer spendPrice) {
        return appAdEffectRecordService.createIfNecessary(userId, scene, type, planId, duration, spendPrice);
    }

}
